home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Games / NetHack 3.1.3 / source / include / trampoli.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-01  |  7.9 KB  |  336 lines  |  [TEXT/R*ch]

  1. /*    SCCS Id: @(#)trampoli.h     3.1    92/10/06      */
  2. /* Copyright (c) 1989, by Norm Meluch and Stephen Spackman      */
  3. /* NetHack may be freely redistributed.  See license for details. */
  4.  
  5. #ifndef TRAMPOLI_H
  6. #define TRAMPOLI_H
  7.  
  8. #ifdef OVERLAY
  9.  
  10. /* ### apply.c ### */
  11. #define dig()     dig_()
  12. #define doapply() doapply_()
  13. #define dojump()  dojump_()
  14. #define dorub()   dorub_()
  15.  
  16.  
  17. /* ### artifact.c ### */
  18. #define doinvoke()     doinvoke_()
  19.  
  20.  
  21. /* ### cmd.c ### */
  22. #define doextcmd()         doextcmd_()
  23. #define doextlist()        doextlist_()
  24. #ifdef POLYSELF
  25. #define domonability()     domonability_()
  26. #endif /* POLYSELF */
  27. #ifdef EXPLORE_MODE
  28. #define enter_explore_mode() enter_explore_mode_()
  29. #endif /* EXPLORE_MODE */
  30. #define doprev_message() doprev_message_()
  31. #define timed_occupation() timed_occupation_()
  32. #if defined(WIZARD) || defined(EXPLORE_MODE)
  33. #define wiz_attributes()   wiz_attributes_()
  34. #endif
  35. #ifdef WIZARD
  36. #define wiz_detect()       wiz_detect_()
  37. #define wiz_genesis()      wiz_genesis_()
  38. #define wiz_identify()     wiz_identify_()
  39. #define wiz_level_tele()   wiz_level_tele_()
  40. #define wiz_map()          wiz_map_()
  41. #define wiz_where()        wiz_where_()
  42. #define wiz_wish()         wiz_wish_()
  43. #endif
  44.  
  45. /* ### display.c ### */
  46. #define doredraw() doredraw_()
  47.  
  48. /* ### do.c ### */
  49. #define doddrop()  doddrop_()
  50. #define dodown()   dodown_()
  51. #define dodrop()   dodrop_()
  52. #define donull()   donull_()
  53. #define doup()     doup_()
  54. #define dowipe()   dowipe_()
  55. #define drop(x)    drop_(x)
  56. #define wipeoff()  wipeoff_()
  57.  
  58.  
  59. /* ### do_name.c ### */
  60. #define ddocall()  ddocall_()
  61. #define do_mname() do_mname_()
  62.  
  63.  
  64. /* ### do_wear.c ### */
  65. #define Armor_off()   Armor_off_()
  66. #define Boots_off()   Boots_off_()
  67. #define Gloves_off()  Gloves_off_()
  68. #define Helmet_off()  Helmet_off_()
  69. #define Armor_on()    Armor_on_()
  70. #define Boots_on()    Boots_on_()
  71. #define Gloves_on()   Gloves_on_()
  72. #define Helmet_on()   Helmet_on_()
  73. #define doddoremarm() doddoremarm_()
  74. #define doputon()     doputon_()
  75. #define doremring()   doremring_()
  76. #define dotakeoff()   dotakeoff_()
  77. #define dowear()      dowear_()
  78. #define select_off(x) select_off_(x)
  79. #define take_off()    take_off_()
  80.  
  81.  
  82. /* ### dogmove.c ### */
  83. #define wantdoor(x, y, dummy) wantdoor_(x, y, dummy)
  84.  
  85.  
  86. /* ### dokick.c ### */
  87. #define dokick() dokick_()
  88.  
  89.  
  90. /* ### dothrow.c ### */
  91. #define dothrow() dothrow_()
  92.  
  93.  
  94. /* ### eat.c ### */
  95. #define Hear_again() Hear_again_()
  96. #define eatmdone()   eatmdone_()
  97. #define doeat()      doeat_()
  98. #define eatfood()    eatfood_()
  99. #define opentin()    opentin_()
  100. #define unfaint()    unfaint_()
  101.  
  102.  
  103. /* ### end.c ### */
  104. #define done1()     done1_()
  105. #define done2()     done2_()
  106. #define hangup()    hangup_()
  107. #define done_intr() done_intr_()
  108. #if defined(UNIX) || defined (VMS)
  109. #define done_hangup() done_hangup_()
  110. #endif /* UNIX || VMS */
  111.  
  112.  
  113. /* ### engrave.c ### */
  114. #define doengrave() doengrave_()
  115.  
  116.  
  117. /* ### fountain.c ### */
  118. #define gush(x, y, poolcnt) gush_(x, y, poolcnt)
  119.  
  120.  
  121. /* ### hack.c ### */
  122. #define dopickup() dopickup_()
  123. #define identify(x) identify_(x)
  124.  
  125.  
  126. /* ### invent.c ### */
  127. #define ckunpaid(x)  ckunpaid_(x)
  128. #define ddoinv()     ddoinv_()
  129. #define dolook()     dolook_()
  130. #define dopramulet() dopramulet_()
  131. #define doprarm()    doprarm_()
  132. #define doprgold()   doprgold_()
  133. #define doprring()   doprring_()
  134. #define doprtool()   doprtool_()
  135. #define doprwep()    doprwep_()
  136. #define dotypeinv()  dotypeinv_()
  137. #define doorganize() doorganize_()
  138.  
  139.  
  140. /* ### ioctl.c ### */
  141. #ifdef UNIX
  142. # ifdef SUSPEND
  143. #define dosuspend() dosuspend_()
  144. # endif /* SUSPEND */
  145. #endif /* UNIX */
  146.  
  147.  
  148. /* ### lock.c ### */
  149. #define doclose()   doclose_()
  150. #define doforce()   doforce_()
  151. #define doopen()    doopen_()
  152. #define forcelock() forcelock_()
  153. #define picklock()  picklock_()
  154.  
  155.  
  156. /* ### mklev.c ### */
  157. #define do_comp(x, y)  comp_(x, y)
  158.  
  159.  
  160. /* ### mondata.c ### */
  161. /* See comment in trampoli.c before uncommenting canseemon. */
  162. /* #define canseemon(x)    canseemon_(x) */
  163.  
  164.  
  165. /* ### muse.c ### */
  166. #define mbhitm(x, y) mbhitm_(x, y)
  167.  
  168.  
  169. /* ### o_init.c ### */
  170. #define dodiscovered() dodiscovered_()
  171.  
  172.  
  173. /* ### objnam.c ### */
  174. #define doname(x)   doname_(x)
  175. #define xname(x)    xname_(x)
  176.  
  177.  
  178. /* ### options.c ### */
  179. #define doset()          doset_()
  180. #define dotogglepickup() dotogglepickup_()
  181.  
  182.  
  183. /* ### pager.c ### */
  184. #define dohelp()     dohelp_()
  185. #define dohistory()  dohistory_()
  186. #ifdef UNIX
  187. #define intruph()    intruph_()
  188. #endif /* UNIX */
  189. #define dowhatdoes() dowhatdoes_()
  190. #define dowhatis()   dowhatis_()
  191. #define doquickwhatis()   doquickwhatis_()
  192.  
  193.  
  194. /* ### pcsys.c ### */
  195. #ifdef SHELL
  196. #define dosh()       dosh_()
  197. #endif /* SHELL */
  198.  
  199.  
  200. /* ### pickup.c ### */
  201. #define ck_bag(x)        ck_bag_(x)
  202. #define doloot()         doloot_()
  203. #define in_container(x)  in_container_(x)
  204. #define out_container(x) out_container_(x)
  205.  
  206.  
  207. /* ### potion.c ### */
  208. #define dodrink() dodrink_()
  209. #define dodip()   dodip_()
  210.  
  211.  
  212. /* ### pray.c ### */
  213. #define doturn()      doturn_()
  214. #define dopray()      dopray_()
  215. #define prayer_done() prayer_done_()
  216. #define dosacrifice() dosacrifice_()
  217.  
  218.  
  219. /* ### read.c ### */
  220. #define doread()       doread_()
  221. #define set_lit(x, y, val) set_lit_(x, y, val)
  222.  
  223.  
  224. /* ### rip.c ### */
  225. #define genl_outrip(tmpwin, how) genl_outrip_(tmpwin, how)
  226.  
  227.  
  228. /* ### save.c ### */
  229. #define dosave() dosave_()
  230.  
  231.  
  232. /* ### search.c ### */
  233. #define doidtrap()         doidtrap_()
  234. #define dosearch()         dosearch_()
  235. #define findone(zx, zy, num) findone_(zx, zy, num)
  236. #define openone(zx, zy, num) openone_(zx, zy, num)
  237.  
  238.  
  239. /* ### shk.c ### */
  240. #define dopay() dopay_()
  241.  
  242.  
  243. /* ### sit.c ### */
  244. #define dosit() dosit_()
  245.  
  246.  
  247. /* ### sounds.c ### */
  248. #define dotalk() dotalk_()
  249.  
  250.  
  251. /* ### spell.c ### */
  252. #define learn()    learn_()
  253. #define docast()   docast_()
  254. #define dovspell() dovspell_()
  255.  
  256.  
  257. /* ### steal.c ### */
  258. #define stealarm() stealarm_()
  259.  
  260.  
  261. /* ### trap.c ### */
  262. #define dotele()     dotele_()
  263. #define dountrap()   dountrap_()
  264. #define float_down() float_down_()
  265.  
  266.  
  267. /* ### version.c ### */
  268. #define doversion()    doversion_()
  269. #define doextversion() doextversion_()
  270.  
  271.  
  272. /* ### wield.c ### */
  273. #define dowield() dowield_()
  274.  
  275.  
  276. /* ### zap.c ### */
  277. #define bhitm(x, y) bhitm_(x, y)
  278. #define bhito(x, y) bhito_(x, y)
  279. #define dozap()     dozap_()
  280.  
  281.  
  282. /* ### getline.c ### */
  283. #define tty_getlin(x,y)            tty_getlin_(x,y)
  284. #ifdef COM_COMPL
  285. #define tty_get_ext_cmd(x)        tty_get_ext_cmd_(x)
  286. #endif /* COM_COMPL */
  287.  
  288.  
  289. /* ### termcap.c ### */
  290. #define tty_nhbell()            tty_nhbell_()
  291. #define tty_number_pad(x)        tty_number_pad_(x)
  292. #define tty_delay_output()        tty_delay_output_()
  293. #define tty_start_screen()        tty_start_screen_()
  294. #define tty_end_screen()        tty_end_screen_()
  295.  
  296.  
  297. /* ### topl.c ### */
  298. #define tty_doprev_message()        tty_doprev_message_()
  299. #define tty_yn_function(x,y,z)        tty_yn_function_(x,y,z)
  300.  
  301.  
  302. /* ### wintty.c ### */
  303. #define tty_init_nhwindows()        tty_init_nhwindows_()
  304. #define tty_player_selection()        tty_player_selection_()
  305. #define tty_askname()            tty_askname_()
  306. #define tty_get_nh_event()        tty_get_nh_event_()
  307. #define tty_exit_nhwindows(x)        tty_exit_nhwindows_(x)
  308. #define tty_suspend_nhwindows(x)    tty_suspend_nhwindows_(x)
  309. #define tty_resume_nhwindows()        tty_resume_nhwindows_()
  310. #define tty_create_nhwindow(x)        tty_create_nhwindow_(x)
  311. #define tty_clear_nhwindow(x)        tty_clear_nhwindow_(x)
  312. #define tty_display_nhwindow(x,y)    tty_display_nhwindow_(x,y)
  313. #define tty_destroy_nhwindow(x)        tty_destroy_nhwindow_(x)
  314. #define tty_curs(x,y,z)            tty_curs_(x,y,z)
  315. #define tty_putstr(x,y,z)        tty_putstr_(x,y,z)
  316. #define tty_display_file(x,y)        tty_display_file_(x,y)
  317. #define tty_start_menu(x)        tty_start_menu_(x)
  318. #define tty_add_menu(a,b,c,d)        tty_add_menu_(a,b,c,d)
  319. #define tty_end_menu(a,b,c,d)        tty_end_menu_(a,b,c,d)
  320. #define tty_select_menu(x)        tty_select_menu_(x)
  321. #define tty_update_inventory()        tty_update_inventory_()
  322. #define tty_mark_synch()        tty_mark_synch_()
  323. #define tty_wait_synch()        tty_wait_synch_()
  324. #ifdef CLIPPING
  325. #define tty_cliparound(x,y)        tty_cliparound_(x,y)
  326. #endif
  327. #define tty_print_glyph(a,b,c,d)    tty_print_glyph_(a,b,c,d)
  328. #define tty_raw_print(x)        tty_raw_print_(x)
  329. #define tty_raw_print_bold(x)        tty_raw_print_bold_(x)
  330. #define tty_nhgetch()            tty_nhgetch_()
  331. #define tty_nh_poskey(x,y,z)        tty_nh_poskey_(x,y,z)
  332.  
  333. #endif /* OVERLAY */
  334.  
  335. #endif /* TRAMPOLI_H */
  336.